home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Business Master (3rd Edition)
/
The Business Master (3rd Edition).iso
/
files
/
utilstem
/
anarkey
/
convert.doc
< prev
next >
Wrap
Text File
|
1989-10-01
|
11KB
|
303 lines
CONVERT
The Anarkey AKA Conversion Utility
User Manual
Version 3.00
Steven Calwas
Moderne Software
P.O. Box 3638
Santa Clara, CA 95055-3638
_______
____|__ | (tm)
--| | |-------------------
| ____|__ | Association of
| | |_| Shareware
|__| o | Professionals
-----| | |---------------------
|___|___| MEMBER
Copyright (C) 1989
by Steven Calwas
All rights reserved
Introduction
------------
CONVERT will translate alias and synonym definitions of other command-
line editors into an ANARKEY AKA-compatible format. The resulting file can
then be used as input to LOAD which will pass the list of AKA definitions to
ANARKEY. Thus, if you have accumulated a list of aliases and synonyms for
another command-line editor, CONVERT can help make the transition to ANARKEY
a smooth and painless experience.
CONVERT can process alias and synonym definitions for the following
command-line editors:
-- CED
-- PCED
-- DOSEDIT
Note: Further editing may be required on some of the converted
definitions, especially PCED definitions, before they may be used as input
to LOAD.
Getting Started
---------------
CONVERT command-line syntax is:
CONVERT -type input_file [output_file]
The type argument indicates the format of the definitions to be
converted, for example, whether they are CED-compatible synonyms or DOSEDIT
aliases. The type may be specified anywhere on the command line and must be
immediately preceded by a dash (-) character. It may be in upper or
lowercase. The supported type arguments are:
-C -- convert CED synonyms
-D -- convert DOSEDIT aliases
-P -- convert PCED synonyms
Input_file specifies the disk file containing the original alias or
synonym definitions. The file's name may include an optional drive and path
specification.
Output_file specifies the disk file to where the converted AKA-compatible
definitions should be written. The output_file name may contain an optional
drive and path specification. Following creation, this file can be used as
input to LOAD. (Refer to the "LOAD User Manual" for instructions on using
LOAD.)
The output_file argument is optional. If output_file is not specified,
CONVERT will write the AKA-compatible definitions to the file ANARKEY.AKA in
the current directory of the current drive.
Sample CONVERT command lines are:
CONVERT -c syn.def anarkey.cfg
CONVERT -d dosedit.ali
CONVERT -p pced.syn c:\bin\anarkey.syn
In the first example, the CED synonyms (specified by the -C type
argument) contained in the file SYN.DEF will be converted and saved to a
file called ANARKEY.CFG.
The second example translates the DOSEDIT definitions (-D) in DOSEDIT.ALI
and writes the converted aliases to the default output file ANARKEY.AKA.
Finally, the PCED definitions in PCED.SYN are converted and written to
the file C:\BIN\ANARKEY.SYN.
Converting DOSEDIT Aliases
--------------------------
CONVERT will successfully translate 100% of the definitions contained in
a DOSEDIT alias file. No further editing will be required on the output
file; it may be fed immediately as input to LOAD.
DOSEDIT users would benefit immensely by becoming familiar with the
additional power available in ANARKEY AKAs. The capabilities to pass
parameters to AKAs and to create AKAs consisting of multiple commands should
reduce your editing time significantly. The many other powerful features of
ANARKEY contribute even further to make it an attractive alternative.
Welcome to ANARKEY!
Converting CED and PCED Synonyms
--------------------------------
CONVERT will perform most of the grunt editing work required to translate
CED and PCED synonyms to an ANARKEY-compatible format.
However, while all synonyms will be translated to a valid ANARKEY format,
the resulting AKA will not always be the exact equivalent to the original
synonym. This is especially true of converted PCED synonyms. Some manual
touch-up will be required on these definitions to complete the conversion.
The types of definitions requiring touch-up will be pointed out as this
discussion unfolds.
CONVERT recognizes and processes the following CED/PCED commands:
CHAINCH
PARAMCH
SYN
USERSYN
All other commands in the CED or PCED file are ignored by CONVERT.
CHAINCH Commands
----------------
By default, CED and PCED use the caret(^) character to separate multiple
commands. When CONVERT encounters this character in a synonym substitution
string, it will replace it with the ANARKEY command-separator character,
semicolon (;).
If a CHAINCH command is encountered that changes the separator character,
CONVERT will remember the new separator and replace occurrences of it with
semicolons.
PARAMCH Commands
----------------
PARAMCH commands are handled in a manner similar to CHAINCH commands.
By default, CED and PCED recognize the start of a parameter field by the
percent sign (%). Since ANARKEY uses the same character for this purpose,
no conversion is normally required.
However, the parameter-field character may be changed in CED/PCED by the
PARAMCH command. If PARAMCH changes the parameter-field character, CONVERT
will remember the new character and replace all instances of it with percent
signs.
SYN and USERSYN Commands
------------------------
One major difference between CED/PCED and ANARKEY is that ANARKEY does
not differentiate between input requests made by the primary command
processor and those made by a user program or secondary shell. In ANARKEY,
all commands are stored in the same history buffer and all AKA definitions
are available at any time.
Because of this, CONVERT treats SYN and USERSYN commands identically. On
the one hand, this saves you from having to define the same synonym twice,
once for each environment. On the other hand, it means you will have to
rename any synonym names that differ only in the context of their use. As
an example, assume the following CED synonyms:
SYN d dir
USERSYN d dir /w
CONVERT will translate these definitions to:
:d dir
:d dir /w
In this case, where two AKA definitions use the same AKA word, the second
definition would replace the first when LOAD processed the file.
Other Considerations
--------------------
Additional modifications besides the translation of command-separator and
parameter-specification characters may occur during conversion. For
example, if the converted file is a PCED configuration file (-P), any
asterisk characters (*) in the synonym name are removed. Also, if the
substitution string is bracketed by special characters (for example,
quotes), they are removed.
Note: PCALL and PCED's '*' operator are not necessary in ANARKEY. A
similar (and more powerful and elegant) functionality is provided by the
character-matching history buffer retrieval method. Refer to the "ANARKEY
User Manual" for further information.
Because the '*' operator is not necessary, many of the synonyms
containing it may no longer be of any use. For example, a synonym such as:
SYN L*ONGNAME LONGNAME
is nearly superfluous in ANARKEY. Eliminating such definitions will reduce
the amount of space ANARKEY will require for AKA storage.
ANARKEY does not support nested AKAs and CONVERT does not look for nested
synonyms in the input file. As an example, assume the following nested
synonym definitions:
SYN d dir
SYN dd d^pause^d
CED/PCED would expand the "dd" synonym to "dir^pause^dir." CONVERT will
not take the nesting action into account during translation and, thus, the
resulting AKA definitions would be:
:d dir
:dd d;pause;d
The removal of asterisks from synonym names and ignorance of nested
definitions will often result in an AKA definition that is not equivalent to
its PCED original. It is suggested that you examine the translated AKA
definitions and manually perform any necessary modifications to complete the
conversion.
After CONVERT has finished its job and any touch-up is done, the file may
be processed by LOAD which will pass the converted AKA definitions to
ANARKEY.
To all CED and PCED users, welcome to the world of ANARKEY!
Comments and Suggestions
------------------------
I would love to hear your suggestions, comments, and enhancement ideas
concerning CONVERT and the other programs in the ANARKEY software package.
Please send your suggestions to:
Steven Calwas
Moderne Software
P.O. Box 3638
Santa Clara, CA 95055-3638
_______
____|__ | (tm)
--| | |-------------------
| ____|__ | Association of
| | |_| Shareware
|__| o | Professionals
-----| | |---------------------
|___|___| MEMBER